Extractor to match an http resource and then enumerate all supported methods:
(request.method, Path(request.path)) match { case withMethod ->> Root / "test.json" => withMethod { case Method.GET => ... case Method.POST => ...
Returns an error response if the method is not matched, in accordance with RFC7231